package com.xiaohao.student_course.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-12-15 16:49
 * @package com.xiaohao.student_course.bean
 * @description 学生
 */
@Data
@Entity

@AllArgsConstructor
@NoArgsConstructor
@Table
public class Student {
    @Id
    private Integer id;
    private String studentname;
    private String sex;
    private Integer old;
    private String majorName;
    private String classesName;
}
